package cn.huiyunche.base.service.vo;

import cn.huiyunche.base.service.enums.AccPaytypeEnum;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * 同城物流企业显示账单明细
 *
 * @author lm
 */
public class CTurnoverVeneerVo implements Serializable {

    // 运单ID
    private Long id;

    private String waybillCode;

    // 费用
    private BigDecimal orderActPay;

    private Integer payType;

    // 业务类型 描述
    private String payTypeText;

    // 交易时间
    private Date createTime;

    private String departAddr; // 发车地址
    private String arrivalAddr; // 目的地址

    // 品牌＋车型
    private List<String> branbVehicles;

    private String detail;

    private static final long serialVersionUID = 1L;

    public BigDecimal getOrderActPay() {
        return orderActPay;
    }

    public void setOrderActPay(BigDecimal orderActPay) {
        this.orderActPay = orderActPay;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getPayTypeText() {
        return payType == null ? "" : AccPaytypeEnum.getByValue(payType).getText();
    }

    public void setPayTypeText(String payTypeText) {
        this.payTypeText = payTypeText;
    }

    public String getCreateTime() {
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        return createTime == null ? "" : sf.format(createTime);
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDepartAddr() {
        return departAddr;
    }

    public void setDepartAddr(String departAddr) {
        this.departAddr = departAddr;
    }

    public String getArrivalAddr() {
        return arrivalAddr;
    }

    public void setArrivalAddr(String arrivalAddr) {
        this.arrivalAddr = arrivalAddr;
    }

    public List<String> getBranbVehicles() {
        return branbVehicles;
    }

    public void setBranbVehicles(List<String> branbVehicles) {
        this.branbVehicles = branbVehicles;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWaybillCode() {
        return waybillCode;
    }

    public void setWaybillCode(String waybillCode) {
        this.waybillCode = waybillCode;
    }

    @Override
    public String toString() {
        return "CTurnoverVeneerVo [id=" + id + ", waybillCode=" + waybillCode + ", orderActPay=" + orderActPay
                + ", payType=" + payType + ", payTypeText=" + payTypeText + ", createTime=" + createTime
                + ", departAddr=" + departAddr + ", arrivalAddr=" + arrivalAddr + ", branbVehicles=" + branbVehicles
                + ", detail=" + detail + "]";
    }

}